package cn.ztydata.teachingsystem.heaven.web.dto.test;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 填空项dto类（用于学生答题）
 * Created by cx on 2015/3/26.
 */
public class BlankForAnswerDto {
    @NotNull
    @Min(value = 1, message = "填空项ID不能小于0")
    private Long blankId; //填空项ID

    @Valid
    @NotNull
    @Size(min = 1, message = "填空项集合不能为空")
    private List<BlankAnswerDto> options;//填空答案

    private Integer answerCount; //要求答案数
    private List<String> solutionTexts; //备选答案

    public Long getBlankId() {
        return blankId;
    }

    public void setBlankId(Long blankId) {
        this.blankId = blankId;
    }

    public Integer getAnswerCount() {
        return answerCount;
    }

    public void setAnswerCount(Integer answerCount) {
        this.answerCount = answerCount;
    }

    public List<String> getSolutionTexts() {
        return solutionTexts;
    }

    public void setSolutionTexts(List<String> solutionTexts) {
        this.solutionTexts = solutionTexts;
    }

    public List<BlankAnswerDto> getOptions() {
        return options;
    }

    public void setOptions(List<BlankAnswerDto> options) {
        this.options = options;
    }
}
